package com.qk.common.exception;

import com.qk.common.enums.Code;

/**
 * @author: zyx
 * @created: 2025-10-10-19:37
 * @description:
 */
public class CommonException extends BaseException{
    public CommonException(Code code) {
        super(code.getMsg());
    }

    //抛出异常静态方法
    public static void throwCommonException(Code code) {
        throw new CommonException(code);
    }
}
